FROM elasticsearch:7.6.2

RUN yum clean all \
&& yum makecache fast \
&& yum install wget -y
RUN cd /usr/share/elasticsearch/plugins \
&& wget https://github.com/medcl/elasticsearch-analysis-ik/releases/download/v7.6.2/elasticsearch-analysis-ik-7.6.2.zip \
&&  mkdir ik \
&&  unzip elasticsearch-analysis-ik-7.6.2.zip -d ./ik \
&& rm -rf elasticsearch-analysis-ik-7.6.2.zip
